if ((broker = CxBroker(&mynb, NULL))) // Attempt to create our broker
{
AttachCxObj(broker, HotKey(POP_KEY_DEFAULT, cxport,POP_KEY_ID)); // install a hotkey for popping up window. Setup all application specific commodities objects
// if (error = CxObjError(broker))
ActivateCxObj(broker,1L); // All went well so activate our broker
}
}
}
}
#ifdef DEBUG
printf("start title\n");
Delay(200);
#endif
if (!returncode)
{
cport->Titel = Titel;
// strcpy(cport->actitel, Titel);
if (!(cport->iobuffer = AllocVec(10000, MEMF_ANY | MEMF_CLEAR)))
{
printf("can't alloc mem for iobuffer.\n");
returncode = 20;
}
}
MUIMasterBase = OpenLibrary(MUIMASTER_NAME,0);
NewList((List *)&cport->iobuffer_list);
NewList((List *)&cport->his_list);
NewList((List *)&cport->select_list);
NewList((List *)&cport->downloadlist);
NewList((List *)&cport->rexxlist);
NewList((List *)&cport->itementrylist);
#ifdef DEBUG
printf("set program name\n");
Delay(200);
#endif
SetProgramName(cport->TaskName);
if (!returncode)
{
if (!(client_list = AllocVec(sizeof(List), MEMF_ANY | MEMF_CLEAR)))